<div id="content">

<div id="tsanpham"><p class="tp">Sản phẩm mới</p></div>
<?php include("include/config.php");
		
		$sql="SELECT * FROM product WHERE status=1 ORDER By id DESC LIMIT 0,8";
		$rs=mysql_query($sql);
		if($rs) 
		{
			while($rw=mysql_fetch_array($rs))
			{
			
?>

<div class="sanpham"><a href="product.php?id=<?php echo $rw['id'] ?>"><div id="anhsp"><img class="img" src="images/product/<?php echo $rw['image'];?>" border="0"/></a></div>
	
	<span><?php echo $rw['name']; ?></span>
	<p>Mã SP: <?php echo $rw['code']; ?></p>
	<p class="gia"><?php echo number_format($rw['price'],0,',','.'); ?></p>
	<a href="product.php?cmd=add&id=<?php echo $row["id"]?>"><img src="images/cho_vao_gio.png" border="0" /></a>
	<a href="buy.php?id=<?php echo $rw['id'] ?>"><img src="images/buy.png" boder="0"/></a>
	</div>
<?php 									
			} 
		}
?>


</div>